Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimize isqrt by rewriting in IR #3074

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

charles-cooper
Copy link
Member

What I did

minimizes stack traffic. based on local benchmarks, reduces isqrt worst case performance from ~650 gas to ~500 gas.

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

stack traffic is minimized
@charles-cooper charles-cooper marked this pull request as draft August 25, 2022 00:30
@bout3fiddy
Copy link
Contributor

I'm definitely in favor of this significant improvement! Please approve!

@charles-cooper charles-cooper marked this pull request as ready for review August 25, 2022 00:34
@codecov-commenter
Copy link

codecov-commenter commented Aug 25, 2022

Codecov Report

Merging #3074 (34acbd4) into master (25c7650) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3074      +/-   ##
==========================================
- Coverage   88.38%   88.34%   -0.04%     
==========================================
  Files          97       97              
  Lines       10999    10996       -3     
  Branches     2599     2600       +1     
==========================================
- Hits         9721     9714       -7     
- Misses        828      832       +4     
  Partials      450      450              
Impacted Files Coverage Δ
vyper/builtin_functions/functions.py 90.46% <100.00%> (-0.03%) ⬇️
vyper/codegen/memory_allocator.py 59.67% <0.00%> (-6.46%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@charles-cooper charles-cooper enabled auto-merge (squash) September 1, 2022 18:34
@charles-cooper charles-cooper merged commit 5195f64 into vyperlang:master Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants